#include "asio_driver_special/ws2812.hpp"
#include "asio_driver/utils/bit_coder.hpp"
#include <iostream>

int main()
{
    std::cout << "TEST:WS2812 LDE Chain" << std::endl;
    AD::Special::WS2812_Spi ledChain;
    ledChain.Open("/dev/spidev4.0", 2, true);
    ledChain.SetColor(0, AD::Special::WS2812_Spi::Color{.R = 255, .G = 0, .B = 255});
    ledChain.SetColor(0, AD::Special::WS2812_Spi::Color{.R = 255, .G = 0, .B = 255});
    if (!ledChain.Update())
    {
        std::cerr << "Send fail" << std::endl;
    }
    while(true);
}